CREATE TABLE `SRTrade`.`MsgSRClientFirmRiskMgmt` (
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'will be empty if riskMgmtLevel = ClientFirm',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','ESX','ANY','CXE','DXE','NXAM','NXBR','NXDUB','NXLS','NXLDN','NXML','NXMLT','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'will be empty if riskMgmtLevel = ClientFirm',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'will be empty if riskMgmtLevel = ClientFirm',
`orderExDest` VARCHAR(12) NOT NULL DEFAULT '',
`riskMgmtLevel` ENUM('None','ClientFirm','Symbol') NOT NULL DEFAULT 'None',
`numRejects` INT NOT NULL DEFAULT 0,
`accnt` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'most recently rejected accnt',
`secKey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'most recently rejected secKey',
`secKey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','ESX','ANY','CXE','DXE','NXAM','NXBR','NXDUB','NXLS','NXLDN','NXML','NXMLT','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'most recently rejected secKey',
`secKey_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'most recently rejected secKey',
`secKey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'most recently rejected secKey',
`secKey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'most recently rejected secKey',
`secKey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'most recently rejected secKey',
`secKey_xx` DOUBLE NOT NULL DEFAULT 0 COMMENT 'most recently rejected secKey',
`secKey_cp` ENUM('Call','Put','Pair') NOT NULL DEFAULT 'Call' COMMENT 'most recently rejected secKey',
`secType` ENUM('None','Stock','Future','Option','MLeg') NOT NULL DEFAULT 'None',
`spdrSource` ENUM('None','SpdrTicket','SpdrSingle','SRSE','FIX','HedgeTool','TradeHedge','OpenHedge','AutoHedge','Orphan','RiskManager','OrderManager','ManagedOrder','RFQRespSrvr','Legger','SRSEDrop','FixDrop','TicketDrop','SysTest','RFRResponse','AllocOmni','AllocClient','CertGateway','MLegResponse','LeggerX','DropManager','AutoHedgeSrvr','AuctionStrategySrvr','AllocBlockFace','AllocBlockCust','IceChatGateway','EXS2SRC','MLinkResponse','AutoResponderVD','AutoResponderRC','AutoResponderSN','AutoResponderBX','MLink') NOT NULL DEFAULT 'None',
`userName` VARCHAR(24) NOT NULL DEFAULT '',
`rejectText` TINYTEXT NOT NULL DEFAULT '' COMMENT 'most recent rejectText',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`clientFirm`,`ticker_tk`,`ticker_at`,`ticker_ts`,`orderExDest`,`riskMgmtLevel`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='SpdrClientFirmRiskMgmt records are created/published by SpiderRock Execution Engines and show exchange level risk management child order rejects.';